@import './common';
@import './head';
@import './foot';

.title-box {
    text-align: center;
    margin-bottom: 30px;

    p {
        margin-bottom: 0;

        &:first-child {
            margin-bottom: 15px;
        }

        &:nth-child(2) {
            margin-bottom: 15px;
        }
    }

    .title-line {
        width: 52px;
        height: 3px;
        background: #7992A6;
        margin: 0 auto;
    }
}

.profile-box {
    padding: 60px 8%;


    .profile-item {
        border: 1px solid #CCCCCC;
        padding: 0 10px;
        display: flex;
        align-items: center;

        .profile-left {
            flex: 1;

            p {
                &:nth-child(1) {
                    margin-bottom: 10px;
                }
            }
        }

        .profile-right {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 30px 20px;
            background: map-get($map: $colors, $key: '799');

            img {
                width: 50px;
                height: auto;
            }
        }
    }
}

.process-box {
    background: url('../images/web_231.png') no-repeat;
    background-size: cover;
    padding: 60px 0 10px 0;
    color: #ffffff;

    .title-box {
        @extend .title-box;
        margin-bottom: 35px;
        .title-line {
            background: #fff;
        }
    }

    .process-list {
        padding: 0 8%;
        margin: 0;
        img {
            width: 60px;
            height: auto;
            margin-right: 20px;
        }
        .process-item {
            margin-bottom: 55px;
            .item-top {
                margin-bottom: 15px;
                .top-line {
                    height: 1px;
                    flex: 1;
                    background: #fff;
                }
            }
            .item-title {
                margin-bottom: 40px;
                position: relative;
                &::after {
                    content: '';
                    display: block;
                    width: 50px;
                    height: 5px;
                    background: #fff;
                    position: absolute;
                    top: 50px;
                    left: 0;
                }
            }
            .item-desc {
                line-height: 36px;
                font-size: 18px;
            }
        }
    }
}

.cases-box {
    padding: 60px 8% 30px 8%;

    .cases-item {
        text-align: center;
        margin-bottom: 30px;
        img {
            max-width: 385px;
            width: 100%;
            height: auto;
            margin-bottom: 15px;
        }
    }
}

.contact-box {
    background: url('../images/26.png') no-repeat;
    background-size: cover;

    img {
        width: 100%;
    }

    .contact-content-box {
        padding: 40px 18.75%;
        display: flex;
        justify-content: center;
        align-items: center;

        .form-box {
            padding: 50px 27%;
            border: 3px solid #ffffff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 18px;

            input {
                border: none;
                width: 550px;
                height: 50px;
                background: rgba($color: #ffffff, $alpha: 0.7);
                border-radius: 4px;
                padding-left: 9px;
                margin-bottom: 30px;
            }

            textarea {
                border: none;
                resize: none;
                width: 550px;
                height: 150px;
                background: rgba($color: #ffffff, $alpha: 0.7);
                border-radius: 4px;
                padding: 9px;
                margin-bottom: 40px;
            }

            .btn {
                font-size: 18px;
                color: #fff;
                padding: 15px 24px;
                border-radius: 4px;
                border: 2px solid #ffffff;
            }
        }
    }
}


@media screen and (max-width: 750px) {
    .profile-box {
        padding: 0.5333rem 0.4rem !important;
    }

    .contact-content-box {
        padding: 0.5333rem 0.8rem !important;

        .form-box {
            width: 100%;
            font-size: 0.3733rem !important;
            padding: 0.6667rem 0.5333rem !important;

            input {
                width: 100% !important;
                height: 0.8rem !important;
                margin-bottom: 0.4rem !important;
            }

            textarea {
                width: 100% !important;
                margin-bottom: 0.4rem !important;
            }

            .btn {
                padding: 0.2133rem 0.2667rem !important;
                font-size: 0.4rem !important;
                font-size: 0.4rem !important;
            }
        }
    }
    .contact-box {
        background: url('../images/index_phone_33.png') no-repeat;
        background-size: cover;
    }

    .title-box {
        margin-bottom: 0.4rem !important;

        p {
            margin-bottom: 0.2rem !important;

            &:first-child {
                font-size: 0.4533rem;
            }

            &:nth-child(2) {
                font-size: 0.2933rem;
            }
        }
    }

    .process-box {
        padding: 0.5333rem 0 0.1333rem 0 !important;
        background: url('../images/web_phone_41.png') no-repeat;
        background-size: cover;

        .process-list {
            padding: 0 0.4rem !important;
            
            .process-item {
                padding: 0 !important;
                margin-bottom: 0.4rem !important;

                img {
                    width: 0.9333rem !important;
                    margin-right: 0.4rem !important;
                }
                .item-title {
                    font-size: 0.4rem;
                    margin-bottom: 1rem !important;
                    &::after {
                        top: 1rem;
                    }
                }
                .item-desc {
                    font-size: 0.3467rem !important;
                    line-height: 0.64rem;
                }
            }
        }
    }

    .profile-list {
        .col-md-3 {
            margin-bottom: 0.2667rem;
            .profile-item {
                padding: 0 0.24rem !important;

                .profile-left {
                    p {
                        &:nth-child(1) {
                            font-size: 0.4267rem;
                        }
                        &:last-child {
                            font-size: 0.3467rem;
                        }
                    }
                }

                .profile-right {
                    padding: 0.4667rem !important;
                    img {
                        width: 1.0667rem !important; 
                        height: 1.0667rem !important;
                    }
                }
            }
        }
    }

    .cases-box {
        padding: 0.4rem !important;

        .row {
            margin: 0 !important;
            justify-content: space-between;
            .col-md-3 {
                padding: 0 !important;
            }
        }

        .cases-item {
            width: 4.3333rem;
            margin-bottom: 0.4667rem !important;
            img {
                max-width: 4.3333rem;
                margin-bottom: 0.2rem !important;
            }
            p {
                font-size: 0.3467rem;
            }
        }

    }

}